<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>购物管理</title>
		
		<link href="../css/bootstrap.min.css" rel="stylesheet">
		<link href="../css/bootstrap-table.css" rel="stylesheet" >
		<script src="../js/jquery.min.js"></script>
		<script src="../js/bootstrap.min.js"></script>
		<script src="../js/bootstrap-table.js"></script>
		<script src="../js/bootstrap-table-zh-CN.js"></script>
		<script src="../js/swift.js"></script>
		
	</head>
<body>
		<!--<div class="container">   中部显示--> 
		<div class=".container-fluid">   <!--<div class="container">   90%显示--> 
			<!-- 导航栏 start--> 
		    <ul id="myTabs" class="nav nav-tabs" role="tablist">
		      <li role="presentation" class="active"><a href="#add2edit" id="add2edit-tab" role="tab" data-toggle="tab" aria-controls="add2edit" aria-expanded="false">新建业务模块</a></li>
		      <li role="presentation" class=""><a href="#details" role="tab" id="details-tab" data-toggle="tab" aria-controls="details" aria-expanded="false">添加模块功能</a></li>
		      <li role="presentation" class=""><a href="#list" role="tab" id="list-tab" data-toggle="tab" aria-controls="list" aria-expanded="false">接口数据源配置</a></li>
	          <li role="presentation" class=""><a href="#dropdown1" role="tab" id="dropdown1-tab" data-toggle="tab" aria-controls="dropdown1" aria-expanded="false">界面配置</a></li>
	          <li role="presentation" class=""><a href="#dropdown2" role="tab" id="dropdown2-tab" data-toggle="tab" aria-controls="dropdown2" aria-expanded="false">注册</a></li>
	        </ul>
		    <!-- 导航栏 end-->
		    <!--col-sm-*   1-12  页面虚拟12列                             设置label位置、div宽度-->
		   <!-- 导航栏 对应页面 start-->
		    <div id="myTabContent" class="tab-content">
<!--新建业务模块  start-->
		      <div role="tabpanel" class="tab-pane fade active in" id="add2edit" aria-labelledby="add2edit-tab">
		       	<div class="center-block col-sm-11">
		       		
		       		<form id = "newBus" class="form-horizontal">
					  	<div class="form-group">
						  	<!--col-sm-*   1-12  页面虚拟12列                             设置label位置、div宽度-->
						    <label for="name" class="col-xs-2 col-sm-2 control-label">业务名称</label>   
						    <div class="col-xs-9 col-sm-4 ">
						       <input type="text" class="form-control" id="name" name ="name" placeholder="业务名称">
						    </div>
						    <label for="code" class="col-xs-2 col-sm-2 control-label">业务唯一编码</label>   
						    <div class="col-xs-9 col-sm-4">
						       <input type="text" class="form-control" id="code" name="code" placeholder="业务唯一编码">
						    </div>
					  	</div>
					  	
					  	<div class="form-group">
						    <label for="datas" class="col-sm-2 col-xs-2 control-label">数据源选择</label>   
					       	<div class="col-xs-9 col-sm-4">
						       	<select class="form-control" name = "data"> 
						       		<option id="" class="" value="fweb_db">fweb_db</option>
						       		<option id="" class="" value="data0">数据源（根据key值获取）</option>
						       		<option id="" class="" value="data1">数据源1</option>
						       		<option id="" class="" value="data2">数据源2</option>
						       		<option id="" class="" value="data3">数据源3</option>
						       		<option id="" class="" value="data4">数据源4</option>
						       	</select>
					    	</div>
					    	
					    	<label for="数据源选择" class="col-sm-2 col-xs-2 control-label">资源路径</label>   
					       	<div class="col-xs-9 col-sm-4">
						       	<select class="form-control" name="path"> 
						       		<option id="" class="" value="test/fweb_1">test/fweb_1</option>
						       	</select>
					    	</div>
					  	</div>
					  	
					  	<div class="form-group">
						  	<!--col-sm-*   1-12  页面虚拟12列                             设置label位置、div宽度-->
						    <label for="templateType" class="col-xs-2 col-sm-2 control-label">模板类型</label>   
						    <div class="col-xs-9 col-sm-4">
						       	<select class="form-control" name="type"> 
						       		<option id="" class="" value="easy1">简单1</option>
						       		<option id="" class="" value="easy2">简单2</option>
						       		<option id="" class="" value="easy3">简单3</option>
						       	</select>
						    </div>
						    <label for="template" class="col-xs-2 col-sm-2 control-label">类型</label>   
						    <div class="col-xs-9 col-sm-4">
						       <span id="templateName" class="form-control">普通模板</span>
						    </div>
					  	</div>
					    <button type="button" id = "saveNewBtn" class="btn btn-primary center-block col-sm-4 col-xs-3">保存接受String</button>
					    <button type="button" id = "saveNewBtn2" class="btn btn-primary center-block col-sm-4 col-xs-3">保存接受Object</button>
					</form>
				</div>
			</div>
<!--新建业务模块  end-->

<!--添加模块功能 start-->		      
		      <div role="tabpanel" class="tab-pane fade" id="details" aria-labelledby="details-tab">
		         <div class="col-xs-11">
		         
		         <form id="addModule">
<!--表单	数据 	start-->		         		
			         	<div >
					  		<div class="form-group">
							  	<!--col-sm-*   1-12  页面虚拟12列                             设置label位置、div宽度-->
							    <label for="name" class="col-xs-2 col-sm-2 control-label">业务名称</label>   
							    <div class="col-xs-9 col-sm-4 ">
							       <input type="text" class="form-control" id="" name ="name" placeholder="业务名称" value="业务名称">
							    </div>
							    <label for="code" class="col-xs-2 col-sm-2 control-label">表名称</label>   
							    <div class="col-xs-9 col-sm-4">
								    <select class="form-control" name="tableName"> 
							       		<option id="" class="" value="b1">表1</option>
							       		<option id="" class="" value="b2">表2</option>
							       		<option id="" class="" value="b3">表3</option>
							       	</select>
							    </div>
						  	</div>
						  	<div class="form-group">
							  	<!--col-sm-*   1-12  页面虚拟12列                             设置label位置、div宽度-->
							    <label for="name" class="col-xs-2 col-sm-2 control-label">数据过滤</label>   
							    <div class="col-xs-9 col-sm-4 ">
							       <input type="text" class="form-control" id="" name="datagl" placeholder="数据过滤" value="数据过滤">
							    </div>
							    <label for="code" class="col-xs-2 col-sm-2 control-label">数据物理删除（默认是）</label>   
							    <div class="col-xs-9 col-sm-4">
							       <input type="checkbox" checked="checked" name="del"> 
							    </div>
						  	</div>
			         	</div>
<!--表单	 数据 	end-->		 

<div class="page-header">
  <h1>&nbsp;</h1>
</div>
		        	 <div>
		        	 	
        	<!--按钮 	start-->
        				<button type="button" class="btn btn-primary">添加属性</button>
        				<button type="button" class="btn btn-danger">删除属性</button>
        	<!--按钮	end-->
        	
        	
        	




<!--列表 数据 	start-->
			          <table class="table table-bordered ">
			            <thead>
			              <tr>
			              	<th>序号</th>
			                <th>字段名称</th>
			                <th>字段描述</th>
			                <th>字段类型</th>
			                <th>默认值</th>
			                <th>长度</th>
			                <th>精度</th>
			                <th>必填</th>
			                <th>唯一</th>
			                <th>排序</th>
			                <th>排序方式</th>
			                <th>字典选择</th>
			                <th>格式化</th>
			              </tr>
			            </thead>
			            <tbody >
			               	<tr>
				              	<td>1</td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="name" value="字段名称" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="desc"  value="字段描述" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="type" value="字段类型" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="def" value="默认值" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="len" value="长度" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="pre" value="精度" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="fill"  value="必填" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="sole"  value="唯一" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox"  name="sort" value="排序" readonly></td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="name" >
				                		<option value="pr">主键</option>
				                		<option value="createtime">创建日期</option>
				                	</select>
				                </td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="dect" >
				                		<option value="dictionary1">字典1</option>
				                		<option value="dictionary2">字典2</option>
				                		<option value="dictionary3">字典3</option>
				                	</select>
				                </td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="formatting"  value="格式化" readonly></td>
			              	</tr>
			              		<tr>
				              	<td>1</td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="name" value="字段名称" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="desc"  value="字段描述" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="type" value="字段类型" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="def" value="默认值" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="len" value="长度" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="pre" value="精度" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="fill"  value="必填" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="sole"  value="唯一" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox"  name="sort" value="排序" readonly></td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="name" >
				                		<option value="pr">主键</option>
				                		<option value="createtime">创建日期</option>
				                	</select>
				                </td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="dect" >
				                		<option value="dictionary1">字典1</option>
				                		<option value="dictionary2">字典2</option>
				                		<option value="dictionary3">字典3</option>
				                	</select>
				                </td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="formatting"  value="格式化" readonly></td>
			              	</tr>
			              		<tr>
				              	<td>1</td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="name" value="字段名称" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="desc"  value="字段描述" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="type" value="字段类型" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="def" value="默认值" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="len" value="长度" readonly></td>
				                <td class="col-xs-1"><input class="form-control" type="text"  name="pre" value="精度" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="fill"  value="必填" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox" name="sole"  value="唯一" readonly></td>
				                <td class="col-xs-1"><input  type="checkbox"  name="sort" value="排序" readonly></td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="name" >
				                		<option value="pr">主键</option>
				                		<option value="createtime">创建日期</option>
				                	</select>
				                </td>
				                <td class="col-xs-1">
				                	<select disabled="disabled" name="dect" >
				                		<option value="dictionary1">字典1</option>
				                		<option value="dictionary2">字典2</option>
				                		<option value="dictionary3">字典3</option>
				                	</select>
				                </td>
				                <td class="col-xs-1"><input class="form-control" type="text" name="formatting"  value="格式化" readonly></td>
			              	</tr>
			            </tbody>
			          </table>
<!--列表 数据 	end-->

			        </div>
			        	<input id ="addModuleBtn" type="button" class="btn btn-primary center-block col-sm-11 col-xs-9" value="保存 Object"/>
			        	<input id ="addModuleBtn1" type="button" class="btn btn-primary center-block col-sm-11 col-xs-9" value="保存 String"/>
			        </form>
		        </div>
		      </div>
<!--添加模块功能  end-->





<!--接口数据源配置  	 start-->
		      <div role="tabpanel" class="tab-pane fade" id="list" aria-labelledby="list-tab">
					<!--按钮 	start-->
        				<button type="button" class="btn btn-primary">添加标准动作</button>
        				<button type="button" class="btn btn-danger">删除动作</button>
        				<button type="button" class="btn btn-primary">扩展功能</button>
        			<!--按钮	end-->
					<form>
						<table class="table table-bordered ">
			            <thead>
			              <tr>
			              	<th>序号</th>
			                <th>名称</th>
			                <th>动作标识</th>
			                <th>请求路径</th>
			                <th>请求类型</th>
			                <th>动作限制规则</th>
			                <th>Java增强</th>
			                <th>sql增强</th>
			                <th>操作字段选择</th>
			              </tr>
			            </thead>
			            <tbody >
			               	<tr>
				              	<td>1</td>
				                <td>insert</td>
				                <td>jj_insert</td>
				                <td>请求路径</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="POST">POST</option>
				                		<option value="GET">GET</option>
				                	</select>
					            </td>
				                <td>name!=null</td>
				                <td>之前/之后的接口</td>
				                <td>sql增强</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="name">名称</option>
				                		<option value="createtime">创建日期</option>
				                	</select>
				                </td>
			              	</tr>
			               	<tr>
				              	<td>2</td>
				                <td>insert</td>
				                <td>jj_insert</td>
				                <td>请求路径</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="POST">POST</option>
				                		<option value="GET" selected="selected">GET</option>
				                	</select>
					            </td>
				                <td>name!=null</td>
				                <td>之前/之后的接口</td>
				                <td>sql增强</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="name">名称</option>
				                		<option value="createtime" selected="selected">创建日期</option>
				                	</select>
				                </td>
			              	</tr>
			              	<tr>
				              	<td>3</td>
				                <td>insert</td>
				                <td>jj_insert</td>
				                <td>请求路径</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="POST">POST</option>
				                		<option value="GET">GET</option>
				                	</select>
					            </td>
				                <td>name!=null</td>
				                <td>之前/之后的接口</td>
				                <td>sql增强</td>
				                <td>
				                	<select disabled="disabled">
				                		<option value="name">名称</option>
				                		<option value="createtime">创建日期</option>
				                	</select>
				                </td>
			              	</tr>
			            </tbody>
			          </table>
					</form>
					
		      </div>
<!--接口数据源配置  	 end-->






<!--界面配置  	 start-->
		      <div role="tabpanel" class="tab-pane fade" id="dropdown1" aria-labelledby="dropdown1-tab">
		        <!--按钮 	start-->
        				<button type="button" class="btn btn-primary">添加</button>
        				<button type="button" class="btn btn-danger">删除</button>
        				<button type="button" class="btn btn-primary">保存</button>
        			<!--按钮	end-->
					<form>
						<table class="table table-bordered ">
			            <thead>
			              <tr>
			              	<th>顺序</th>
			                <th>默认展示</th>
			                <th>模板类型</th>
			                <th>页面类型</th>
			                <th>操作</th>
			              </tr>
			            </thead>
			            <tbody >
			               	<tr>
				              	<td>1</td>
				                <td>
				                	<input type="checkbox" value="ck"/>
				                </td>
				                <td>普通台账</td>
				                <td>添加/编辑</td>
				                <td>
				                	<select >
				                		<option value="">页面配置</option>
				                		<option value="name">名称</option>
				                		<option value="time">日期要引入第三方控件</option>
				                		<option value="createtime">购入日期</option>
				                	</select>
				                	<select >
				                		<option value="bjmb">编辑模板</option>
				                	</select>
				                	<select >
				                		<option value="yezq">页面增强</option>
				                		<option value="jszq">js增强</option>
				                		<option value="ysjs">原生js</option>
				                	</select>
				                	<select >
				                		<option value="anpz">按钮配置</option>
				                		<option value="edit">编辑</option>
				                		<option value="del">删除</option>
				                		<option value="add">添加</option>
				                	</select>
				                	<button>预览</button>
					            </td>
			              	</tr>
			              	<tr>
				              	<td>1</td>
				                <td>
				                	<input type="checkbox" value="ck"/>
				                </td>
				                <td>普通台账</td>
				                <td>添加/编辑</td>
				                <td>
				                	<select >
				                		<option value="">页面配置</option>
				                		<option value="name">名称</option>
				                		<option value="time">日期要引入第三方控件</option>
				                		<option value="createtime">购入日期</option>
				                	</select>
				                	<select >
				                		<option value="bjmb">编辑模板</option>
				                	</select>
				                	<select >
				                		<option value="yezq">页面增强</option>
				                		<option value="jszq">js增强</option>
				                		<option value="ysjs">原生js</option>
				                	</select>
				                	<select >
				                		<option value="anpz">按钮配置</option>
				                		<option value="edit">编辑</option>
				                		<option value="del">删除</option>
				                		<option value="add">添加</option>
				                	</select>
				                	<button>预览</button>
					            </td>
			              	</tr>
			            </tbody>
			          </table>
					</form>
		      </div>
<!--界面配置  	 end-->






<!--注册  	 start-->
		      <div role="tabpanel" class="tab-pane fade" id="dropdown2" aria-labelledby="dropdown2-tab">
		        <form>
						<table class="table table-bordered ">
			            <thead>
			              <tr>
			              	<th>业务名称</th>
			                <th>业务唯一编码</th>
			                <th>数据源</th>
			                <th>资源路径</th>
			                <th>操作列</th>
			              </tr>
			            </thead>
			            <tbody >
			               	<tr>
				              	<td>物质管理</td>
				                <td>业务编码</td>
				                <td>fweb_db</td>
				                <td>/fweb/xxx</td>
				                <td>
				                	<select >
				                		<option value="配置地址">配置地址</option>
				                		<option value="gwg/list">列表地址</option>
				                		<option value="gwg/add">添加页面</option>
				                		<option value="gwg/edit">编辑页面 </option>
				                		<option value="gwg/detail">详情页面</option>
				                	</select>
					            </td>
			              	</tr>
			              	<tr>
				              	<td>物质管理</td>
				                <td>业务编码</td>
				                <td>fweb_db</td>
				                <td>/fweb/xxx</td>
				                <td>
				                	<select >
				                		<option value="配置地址">配置地址</option>
				                		<option value="gwg/list">列表地址</option>
				                		<option value="gwg/add">添加页面</option>
				                		<option value="gwg/edit">编辑页面 </option>
				                		<option value="gwg/detail">详情页面</option>
				                	</select>
					            </td>
			              	</tr>
			            </tbody>
			          </table>
					</form>
		      </div>
		    </div>
<!--注册  	 end-->
		    <!-- 导航栏 对应页面 end-->
 	 	</div>
 	 	
 	 	

 	 	
 	 	
		<script type="text/javascript">
			//新建业务模块  
			$("#saveNewBtn").click(function(){
					console.error("提醒");
				var $_newData = $("#newBus").serializeObject();
				console.log("1111",$_newData);
				$.post("/addnewS",$_newData,function(data){
					console.error("提醒");
					console.warn(data);
				});
			})
			$("#saveNewBtn2").click(function(){
					console.error("提醒");
				var $_newData = $("#newBus").serializeObject();
				console.log("1111",$_newData);
				$.post("/addnew",$_newData,function(data){
					console.error("提醒");
					console.warn(data);
				});
			})
			//新建业务模块  
			$("#addModuleBtn").click(function(){
				var $_newData = $("#addModule").serializeAllArray();
				console.log("1111",$_newData);
				$.post("/addnew",$_newData,function(data){
					console.error("提醒");
					console.warn(data);
				});
			})
			$("#addModuleBtn1").click(function(){
				var $_newData = $("#addModule").serializeAllArray();
				console.log("1111",$_newData);
				$.post("/addnewS",$_newData,function(data){
					console.error("提醒");
					console.warn(data);
				});
			})
			
		</script>
	</body>
</html>

